package cn.initcap.designpattern.pattern.behavioral.state;

/**
 * 状态模式抽象
 *
 * @author initcap
 * @date Created in 2018/11/1 PM11:27.
 */
public abstract class BaseCourseVideoState {
    protected CourseVideoContext courseVideoContext;

    public void setCourseVideoContext(CourseVideoContext courseVideoContext) {
        this.courseVideoContext = courseVideoContext;
    }

    /**
     * 启动
     */
    public abstract void play();

    /**
     * 快进
     */
    public abstract void speed();

    /**
     * 暂停
     */
    public abstract void pause();

    /**
     * 停止
     */
    public abstract void stop();
}
